package models

//卡片类型
type CardType int

const (
	NormalCard  CardType = 1 + iota //普通月卡
)

type CardInfo struct {
	BaseBean `xorm:"extends"`
	Type CardType //卡片的类型
	CardName string //卡片的名字
	CardPeriod int64 //卡片的领取周期

}

//返回一个cardtype
func NewCardInfo(cardName string, cardPeriod int64) *CardInfo {
	return &CardInfo{
		CardName: cardName,
		CardPeriod: cardPeriod,
		Type:NormalCard,
	}
}
